const loading = {
    set(f7) {
        loading.$vue = f7;
    },
    create(msg) {
        if (msg) {
            loading.dialog = true;
            return loading.$vue.dialog.preloader(msg);
        } else {
            loading.dialog = false;
            return loading.$vue.preloader.show();
        }
    },
    close() {
        if (loading.dialog) {
            return loading.$vue.dialog.close();
        } else {
            return loading.$vue.preloader.hide();
        }
    }
}
export default loading;